package com.CmJava.servlet.executionChain;

import com.CmJava.servlet.executionChain.handlerMethodMapping.HandlerMethod;
import com.CmJava.servlet.modelAndView.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HandlerExecutionChain {
    private Object handler;

    public HandlerExecutionChain(Object handler) {
        if (handler instanceof HandlerMethod){
            this.handler = handler;
        }else {
            throw new RuntimeException("handler not instanceof HandlerMethod");
        }
    }

    public Object getHandler() {

        return this.handler;
    }

}
